wayland: Don't try to use subsurfaces as popup parents
authorJonas Ådahl <jadahl@gmail.com>
Sun, 18 Oct 2015 13:03:52 +0000 (21:03 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 27 Oct 2015 00:41:02 +0000 (08:41 +0800)
commite25ea62f22ce0bbb7175f93c07de5cab773778a7
tree4586cb6522022a1f1d61b37ac56f0b07625ea98e
parent49798754e6176147d1ff34581f2f4ed715ebb9b7
wayland: Don't try to use subsurfaces as popup parents

If a GtkMenu (or something else that is mapped as a xdg_popup) tries to
use a subsurface window as a parent, it will be terminated by the
compositor due to protocol violation. So to avoid this, if a parent
window is not a xdg_popup or xdg_surface, i.e. a wl_subsurface, then
traverse up the transient parents until we find the right popup parent.

https://bugzilla.gnome.org/show_bug.cgi?id=756780
gdk/wayland/gdkwindow-wayland.c